import request from '@/utils/request'

//  事前巡检

// 获取项目列表
export function getTreeByNameByLike(param) {
    return request({
        url: 'rest/bizProject/getTreeByNameByLike',
        method: 'post',
        data: param
    })
}

// 获取 table 数据
export function getDocTree(param) {
    return request({
        url: 'rest/doc/treeData',
        method: 'post',
        data: param
    })
}

// 保存文件夹名称
export function getDocSave(param) {
    return request({
    url: 'rest/document/save',
    method: 'post',
    data: param
    })
}
// 保存文件夹名称
export function getDoc(param) {
    return request({
    url: 'rest/document/get',
    method: 'post',
    data: param
    })
}

// 文件上传
export function getUploadFile(param) {
    return request({
    url: 'rest/doc/uploadDoc',
    method: 'post',
    data: param
    })
}

// 删除目录
export function getDocDelete(param) {
    return request({
    url: 'rest/document/delete',
    method: 'post',
    data: param
    })
}

// 删除文件
export function getDocDeleteAttach(param) {
    return request({
    url: 'rest/doc/deleteAttach',
    method: 'post',
    data: param
    })
}

// 获取文件列表
export function getAttachList(param) {
    return request({
        url: 'rest/doc/attachList',
        method: 'post',
        data: param
    })
}

export function getDocList(param) {
    return request({
        url: 'rest/document/list',
        method: 'post',
        data: param
    })
}
